package com.todod.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author lql
 * @date 2021年1月26日
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.sys_user_role")
public class UserRole implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId("sur_id")
	private Long id;

	@TableField("sur_role_id")
	private Long roleId;

	@TableField("sur_user_id")
	private Long userId;

	@TableField("sur_create_user_id")
	private Long createUserId;

	@TableField("sur_create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;

	@TableField("sur_modify_user_id")
	private Long modifyUserId;

	@TableField("sur_modify_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifyTime;

	@TableField("sur_get_flag")
	private String getFlag;

	@TableField("sur_get_batch")
	private String getBatch;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Long getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(Long modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getGetFlag() {
		return getFlag;
	}

	public void setGetFlag(String getFlag) {
		this.getFlag = getFlag;
	}

	public String getGetBatch() {
		return getBatch;
	}

	public void setGetBatch(String getBatch) {
		this.getBatch = getBatch;
	}

	@Override
	public String toString() {
		return "UserRole{" + "id=" + id + ", roleId=" + roleId + ", userId=" + userId + ", createUserId=" + createUserId
				+ ", createTime=" + createTime + ", modifyUserId=" + modifyUserId + ", modifyTime=" + modifyTime
				+ ", getFlag=" + getFlag + ", getBatch=" + getBatch + "}";
	}
}
